﻿<%@ Page Title="projectinfo" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="List.aspx.cs" Inherits="lcps.Web.projectinfo.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/CheckBox.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            font-size: large;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->
            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                         <b>采购订单号：</b>
                    </td>
                    <td style=" text-align:left;">                       
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <span class="style1">项目物资需求计划履约明细表（总表）</span>
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" 
        Width="4000px" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="ID" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" 
        OnRowCreated="gridView_OnRowCreated" PageSize="20">
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis"  runat="server" />
                                </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                            </asp:TemplateField> 
                            
                            <asp:TemplateField HeaderText="编辑">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hy_edit" runat="server" Enabled="False" 
                                        NavigateUrl='<%# Eval("ID", "Modify.aspx?id={0}") %>' Text="编辑"></asp:HyperLink>
                                </ItemTemplate>
                                <ControlStyle Width="50px" />
                        </asp:TemplateField>
                            
                            <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" 
                            DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Show.aspx?id={0}"
                                Text="详细"  >
                            <ControlStyle Width="50px" />
                        </asp:HyperLinkField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除"   Visible="false"  >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                            
		                <asp:BoundField DataField="proid" HeaderText="项目编号" />
    <asp:HyperLinkField HeaderText="招标计划编号" 
            DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../projectinfo/Show.aspx?id={0}" 
            DataTextField="bidid" Target="_blank"  >
<ControlStyle Width="50px"></ControlStyle>
        </asp:HyperLinkField>
		<asp:BoundField DataField="purchaseid" HeaderText="采购订单号" SortExpression="purchaseid" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="usework" HeaderText="需用单位" SortExpression="usework" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="projectname" HeaderText="项目名称" SortExpression="projectname" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="projecttype" HeaderText="项目类型" SortExpression="projecttype" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="supplier" HeaderText="供应商名称" SortExpression="supplier" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="materiel" HeaderText="物料描述" SortExpression="materiel" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="nums" HeaderText="数量" SortExpression="nums" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="unit" HeaderText="单位" SortExpression="unit" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="contractdate" HeaderText="合同签定日期" SortExpression="contractdate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="deliverydate" HeaderText="合同交货时间" SortExpression="deliverydate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="arrivaldate" HeaderText="项目单位要求到货时间" SortExpression="arrivaldate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="workdate" HeaderText="项目计划投运时间" SortExpression="workdate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="drawingplandate" HeaderText="图纸设计计划完成时间" 
                            SortExpression="drawingplandate" ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="drawingstate" HeaderText="目前图纸设计情况" SortExpression="drawingstate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="drawingsubmitdate" HeaderText="图纸应提交设计单位时间" 
                            SortExpression="drawingsubmitdate" ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="drawingconfirmdate" HeaderText="要求设计单位确认时间" 
                            SortExpression="drawingconfirmdate" ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="designstate" HeaderText="设计单位确认情况" SortExpression="designstate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="majormaterielpurchase" HeaderText="主要原材料采购情况" 
                            SortExpression="majormaterielpurchase" ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="deviceproductionstate" HeaderText="目前设备生产状态" 
                            SortExpression="deviceproductionstate" ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="mothstate" HeaderText="本月生产情况" SortExpression="mothstate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="nextmoth" HeaderText="下月生产计划" SortExpression="nextmoth" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="planarrivedate" HeaderText="计划到货时间" SortExpression="planarrivedate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="coordinate" HeaderText="需要协调的问题" SortExpression="coordinate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="remark" HeaderText="备注" SortExpression="remark" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="realdate" HeaderText="实际到货时间" SortExpression="realdate" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="receivedname" HeaderText="接收人" SortExpression="receivedname" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="supplierphone" HeaderText="联系电话" SortExpression="receivedphone" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="suppliername" HeaderText="供应商联系人" SortExpression="suppliername" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		<asp:BoundField DataField="supplierphone" HeaderText="联系电话" SortExpression="supplierphone" 
                            ItemStyle-HorizontalAlign="Center"  > 
		                <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
		                <asp:TemplateField HeaderText="tableid" SortExpression="tableid" 
                            Visible="False">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("tableid") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lbl_tableid" runat="server" Text='<%# Bind("tableid") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        </Columns>

                    <PagerSettings FirstPageText="&lt;&lt;" LastPageText="&gt;&gt;" 
                        Mode="NextPreviousFirstLast" NextPageText="下一页" PreviousPageText="上一页|" />
                    <PagerStyle Font-Bold="True" Font-Size="14px" HorizontalAlign="Left" />

<RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:Button ID="btnDelete" runat="server" Text="删  除" OnClick="btnDelete_Click" 
                            Width="100px"/>                       
                    &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btn_excel" runat="server" onclick="btn_excel_Click" 
                            Text="导出Excel" Width="100px" Visible="False" />
                    </td>
                </tr>
            </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
